﻿@model SDE_FIC.Models.Turma

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Layout_Sistema.cshtml";
}

<h2>Editar</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Turma</legend>

       
        <div class="editor-field">
            @Html.HiddenFor(model => model.Idturma)
            
        </div>

       <table style="width:700px;">

        <tr>
            <td style="vertical-align:top;">
        <div class="editor-label">
            <b>Descrição</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Descricao)
            @Html.ValidationMessageFor(model => model.Descricao)
        </div>

        <div class="editor-label">
            <b>Horário</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Horario)
            @Html.ValidationMessageFor(model => model.Horario)
        </div>

        <div class="editor-label">
            <b>Início Previsto</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DataInicio)
            @Html.ValidationMessageFor(model => model.DataInicio)
        </div>

        <div class="editor-label">
            <b>Término Previsto</b>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DataFim)
            @Html.ValidationMessageFor(model => model.DataFim)
        </div>
                </td>
                <td style="vertical-align:top;">
        <div class="editor-label">
            <b>Situação</b>
        </div>
        <div class="editor-field">Ativo
            @Html.CheckBoxFor(model => model.Status, new { @checked = true })
            @Html.ValidationMessageFor(model => model.Status)
        </div>
                    <br />
        <div class="editor-label">
            <b>Professor</b>
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => Model.Funcionario.IdFuncionario, ViewBag.funcionario_idfuncionario as SelectList)
            @Html.ValidationMessageFor(model => model.Funcionario.IdFuncionario)
        </div>

        <div class="editor-label">
            <b>Curso</b>
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => Model.Curso.IdCurso, ViewBag.curso_idcurso as SelectList)
            @Html.ValidationMessageFor(model => model.Curso.IdCurso)
        </div>
        </td>
        <td style="vertical-align:top;">
            <table style="width:100px;">
                <tr>
                    <td colspan="2"><b>Dias da Semana</b></td>
                </tr>
                <tr>
                    <td>
                        <b>Seg</b>
                    </td>
                    <td>
                        @Html.CheckBoxFor(model => model.Segunda)
                        
                    </td>
                </tr>
                <tr>
                    <td>
                        <b>Ter</b>
                    </td>
                    <td>
                        @Html.CheckBoxFor(model => model.Terca)
                        
                    </td>
                </tr>
                <tr>
                    <td>
                        <b>Qua</b>
                    </td>
                    <td>
                        @Html.CheckBoxFor(model => model.Quarta)
                        
                    </td>
                </tr>
                <tr>
                    <td>
                        <b>Qui</b>
                    </td>
                    <td>
                        @Html.CheckBoxFor(model => model.Quinta)
                        
                    </td>
                </tr>
                <tr>
                    <td>
                        <b>Sex</b>
                    </td>
                    <td>
                        @Html.CheckBoxFor(model => model.Sexta)
                        
                    </td>
                </tr>
                <tr>
                    <td>
                        <b>Sáb</b>
                    </td>
                    <td>
                        @Html.CheckBoxFor(model => model.Sabado)
                        
                    </td>
                </tr>
                 <tr>
                    <td>
                        <b>Dom</b>
                    </td>
                    <td>
                        @Html.CheckBoxFor(model => model.Domingo)
                        
                    </td>
                </tr>
            </table>
            <br />
            <br />

         </td>
        </tr>
     </table>
        <br />
        <p>
            <input type="submit" class="btn btn-sucsess " value="Salvar" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Voltar para Listagm", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
